﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sharp.Events
{
    /// <summary>
    /// 标识异步执行
    /// </summary>
    public class AsyncAttribute : Attribute
    {
        /// <summary>
        /// 标识异步执行
        /// </summary>
        public AsyncAttribute()
        {
            IsAsync = true;
        }
        /// <summary>
        /// 标识异步执行
        /// </summary>
        /// <param name="isAsync"></param>
        public AsyncAttribute(bool isAsync)
        {
            IsAsync = isAsync;
        }
        /// <summary>
        /// 是否异步
        /// </summary>
        public bool IsAsync { get; set; }
    }
}
